package com.kcht.rfid.rd30.secretary.core.common;

/**
 * 锁类型
 * */
public enum LockAction {
    READ_WRITE,PERMA_UNLOCK,SECURE_WRITE,PERMA_LOCK;
    public static LockAction fromTMSpecCode(int action){
        if(action < 0  || action > 3)
            throw new RuntimeException("位置的LockAction代码:"+action);
        return LockAction.values()[action];
    }
}
